#pragma once

#include <GLFW\glfw3.h>
#include "..\framebuffer.h"

class win32_frame_buffer
	:public framebuffer
{
private:
	GLFWwindow *_win;
public:
	win32_frame_buffer(GLFWwindow *win_)
		:_win(win_)
	{
		_depBuffer = depth_buffer();
		_stencBuffer = stencil_buffer();
		_colorBuffers.push_back(color_buffer());
	}

	GLFWwindow* window()
	{
		return _win;
	}

	void flush() const
	{
		glfwSwapBuffers(_win);
	}
};